//package com.eastfair.projectcore.config;
//
//import com.eastfair.cloud.seata.SeataFailureHandler;
//import io.seata.tm.api.DefaultFailureHandlerImpl;
//import io.seata.tm.api.FailureHandler;
//import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import static io.seata.common.Constants.BEAN_NAME_FAILURE_HANDLER;
//
//@Configuration
//public class SeataConfig {
//
//    @Bean({"failureHandler"})
//    @ConditionalOnMissingBean({FailureHandler.class})
//    public FailureHandler failureHandler() {
//        return new SeataFailureHandler();
//    }
//
//
//}
